const { test } = require('../controllers');
const { scmTest } = require('../schema/index')

const routes = [
  {
    //  测试
    method: 'get',
    path: '/a',
	valid: scmTest.list,
    controller: test.list
  },
  {
    //  登陆
    method: 'post',
    path: '/login',
	valid: scmTest.login,
    controller: test.login
  },
  {
    //  登陆
    method: 'post',
    path: '/user',
	valid: scmTest.user,
    controller: test.saveUser
  },
];

module.exports = routes;

